<div class="contentBox">
            <div class="contentBoxTop">
              <h3>Manage Order</h3>
            </div>
            <div class="innerContent">
                
                <div style="margin-bottom: 10px">
                    <form action="" method="post">
                    <label for="from">From</label>
                    <input type="text" id="from" name="from">
                    <label for="to">to</label>
                    <input type="text" id="to" name="to">
                    <input type="submit" name="filter" value="Search">
                    </form>
                    <p style="color: red; font-size: 13px; font-weight: bold;">
                    <?php echo isset($from) && $from != '' ? "From  ".$from : '' ; echo "  to  ";?>
                    <?php echo isset($to) && $to != '' ? $to : '' ;?>
                    <p>
                </div>
                 <script>
                    $(function() {
                    $( "#from" ).datepicker({ dateFormat: "yy-mm-dd" });
                    $( "#to" ).datepicker({ dateFormat: "yy-mm-dd" });
                    $( "#from" ).datepicker({
                        
                    defaultDate: "+1w",
                    changeMonth: true,
                    numberOfMonths: 1,
                    onClose: function( selectedDate ) {
                    $( "#to" ).datepicker( "option", "minDate", selectedDate );
                    }
                    });
                    $( "#to" ).datepicker({
                    defaultDate: "+1w",
                    changeMonth: true,
                    numberOfMonths: 1,
                    onClose: function( selectedDate ) {
                    $( "#from" ).datepicker( "option", "maxDate", selectedDate );
                    }
                    });
                    });
                </script>
                <?php echo (isset($not_found) && $not_found!='') ? $not_found : '';?>
                
                <table class="sTable" cellpadding = "10">
		<thead>
                  <tr>
                    <th><strong>ID</strong></th>
                    <th><strong>Custom</strong></th>
                    
                    <th><strong>Custom phone</strong></th>
                    <th><strong>Custom address</strong></th>
                    <th><strong>Custom note</strong></th>
                    <th><strong>Date</strong></th>
                    <th><strong>View</strong></th>
                    </tr>
                </thead>
                <?php foreach ($list_order as $order) {?>
                <tr class="oddRow">
                    <td><?php echo $order['order_id'];?></td>
                    <td><?php echo $order['cus_name'];?></td>
                    <td><?php echo $order['cus_phone'];?></td>
                    <td><?php echo $order['cus_address'];?></td>
                    <td><?php echo $order['cus_note'];?></td>
                    <td><?php echo $order['order_date'];?></td>
                    <td><a href="<?php echo $baseURL; ?>admin/order/order_detail/<?php echo $order['order_id'];?>">Details</a></td>
                    
                </tr>
                <?php } ?>
                    
                   </table>
                   
              
            </div><!--end of #box-3-->
          </div>